package com.bookstore.service.serviceImpl;

import com.bookstore.dao.UserLoginMapper;
import com.bookstore.bean.User;
import com.bookstore.service.UserLoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserLoginServiceImpl implements UserLoginService {
    @Resource
    private UserLoginMapper userLoginMapper;

    @Override
    public User login(int userId, String password) {
        return userLoginMapper.login(userId,password);
    }
}
